Install binaries under $SWIFT_PREFIX/usr/bin instead of /usr/bin#455
Open
kkebo wants to merge 13 commits into
Open
Install binaries under $SWIFT_PREFIX/usr/bin instead of /usr/bin#455kkebo wants to merge 13 commits into
$SWIFT_PREFIX/usr/bin instead of /usr/bin#455kkebo wants to merge 13 commits into
Conversation
Member
Author
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
from
April 1, 2025 13:43
984462a to
fd82e29
Compare
Member
Author
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
from
April 7, 2025 15:54
0628abe to
6902af9
Compare
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
from
April 24, 2025 11:07
6902af9 to
0225a99
Compare
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
2 times, most recently
from
July 15, 2025 17:51
79a75a3 to
1eba53f
Compare
Member
Author
|
I updated the branch and added the changes for the new nightly-6.2 directory. |
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
from
August 14, 2025 14:09
1eba53f to
6eecf3b
Compare
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
from
September 4, 2025 13:29
6eecf3b to
4226312
Compare
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
from
September 13, 2025 12:52
4226312 to
c3797c7
Compare
kkebo
marked this pull request as draft
December 8, 2025 17:36
Member
Author
|
I have to update this PR because new Dockerfiles have been added. I'll change this PR to a draft PR until the work is finished. Done. |
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
from
December 14, 2025 17:52
c3797c7 to
f34e4af
Compare
kkebo
marked this pull request as ready for review
December 14, 2025 17:52
Member
Author
|
For nightly Amazon Linux Dockerfiles, we need the fixes of #520 because those dangling backslashes break succeeding |
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
from
January 26, 2026 02:36
f34e4af to
f61aa0f
Compare
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
from
May 3, 2026 02:39
f61aa0f to
90ffd73
Compare
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
2 times, most recently
from
June 2, 2026 17:03
b87f52a to
625a7c5
Compare
This prevents some binaries from being unintentionally overwritten by the system package manager. Symbolic links are also placed in the old directory (`/usr/bin`) for compatibility.
…/bin` This prevents some binaries from being unintentionally overwritten by the system package manager. Symbolic links are also placed in the old directory (`/usr/bin`) for compatibility.
…of `/usr/bin` This prevents some binaries from being unintentionally overwritten by the system package manager. Symbolic links are also placed in the old directory (`/usr/bin`) for compatibility.
…/bin` This prevents some binaries from being unintentionally overwritten by the system package manager. Symbolic links are also placed in the old directory (`/usr/bin`) for compatibility.
…of `/usr/bin` This prevents some binaries from being unintentionally overwritten by the system package manager. Symbolic links are also placed in the old directory (`/usr/bin`) for compatibility.
…/bin` This prevents some binaries from being unintentionally overwritten by the system package manager. Symbolic links are also placed in the old directory (`/usr/bin`) for compatibility.
… of `/usr/bin` This prevents some binaries from being unintentionally overwritten by the system package manager. Symbolic links are also placed in the old directory (`/usr/bin`) for compatibility.
All nightly Amazon Linux Dockerfiles have unintended dangling backslashes.
Some nightly UBI Dockerfiles have unintended dangling backslashes.
…d of `/usr/bin` This prevents some binaries from being unintentionally overwritten by the system package manager. Symbolic links are also placed in the old directory (`/usr/bin`) for compatibility.
…in` instead of `/usr/bin` This prevents some binaries from being unintentionally overwritten by the system package manager. Symbolic links are also placed in the old directory (`/usr/bin`) for compatibility.
kkebo
force-pushed
the
install-binaries-under-swift-prefix
branch
from
June 3, 2026 11:26
625a7c5 to
c138b0f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
fixes #383
This prevents some Swift toolchain binaries from being unintentionally overwritten by system package managers (e.g. apt).
Changes
I added the following changes to 6.0 Dockerfiles, 6.1 Dockerfiles, nightly-6.1 Dockerfiles, nightly-6.2 Dockerfiles, and nightly-main Dockerfiles.
$SWIFT_PREFIXinstead of/$SWIFT_PREFIXis/opt/swift/{version number}by default.PATH="${SWIFT_PREFIX}/usr/bin:${PATH}"andLD_LIBRARY_PATH="${SWIFT_PREFIX}/usr/lib/swift/linux"$SWIFT_PREFIX/usr/bin/*to/usr/bin/*for existing users who expectswiftto be in/usr/bin.